Add some overlay scrollbar theming to Adwaita
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Oct 2014 03:37:29 +0000 (23:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 21 Oct 2014 03:07:45 +0000 (23:07 -0400)
gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index c2851903e48c5dd25f905c6005dee0b7d45b0751..564521e3014eb867319492ff0d07f3651363227d 100644 (file)
@@ -3022,3 +3022,25 @@ GtkVolumeButton.button { padding: 8px; }
 .monospace {
   font: Monospace;
 }
+
+/* Overlay scrollbars */
+
+.scrollbar.overlay-indicator.dragging,
+.scrollbar.overlay-indicator.hovering {
+  -GtkRange-slider-width: 15;
+}
+
+.scrollbar.overlay-indicator.dragging.trough,
+.scrollbar.overlay-indicator.hovering.trough {
+  background-color: transparentize(black, 0.9);
+}
+
+.sidebar .scrollbar.overlay-indicator,
+.scrollbar.overlay-indicator {
+  -GtkRange-slider-width: 10;
+}
+
+.sidebar .scrollbar.overlay-indicator .trough,
+.scrollbar.overlay-indicator.trough {
+  background-color: transparent;
+}
index e5319532f503cfbea73142659f66b6e8473666f4..6348c6033966382af586847dd5d35afc9dc23ad0 100644 (file)
@@ -4372,6 +4372,23 @@ GtkCalendar.header .menuitem.titlebutton.button:selected, .list-row:selected {
 .monospace {
   font: Monospace; }
 
+/* Overlay scrollbars */
+.scrollbar.overlay-indicator.dragging,
+.scrollbar.overlay-indicator.hovering {
+  -GtkRange-slider-width: 15; }
+
+.scrollbar.overlay-indicator.dragging.trough,
+.scrollbar.overlay-indicator.hovering.trough {
+  background-color: rgba(0, 0, 0, 0.1); }
+
+.sidebar .scrollbar.overlay-indicator,
+.scrollbar.overlay-indicator {
+  -GtkRange-slider-width: 10; }
+
+.sidebar .scrollbar.overlay-indicator .trough,
+.scrollbar.overlay-indicator.trough {
+  background-color: transparent; }
+
 /* GTK NAMED COLORS
    ----------------
    use responsibly! */
index 7766b1d7aa6632ed54321b9640b7822fa4001763..9545fe5aa264bb41f2882f697842c6ffe7c232b0 100644 (file)
@@ -4534,6 +4534,23 @@ GtkCalendar.header .menuitem.titlebutton.button:selected, .list-row:selected {
 .monospace {
   font: Monospace; }
 
+/* Overlay scrollbars */
+.scrollbar.overlay-indicator.dragging,
+.scrollbar.overlay-indicator.hovering {
+  -GtkRange-slider-width: 15; }
+
+.scrollbar.overlay-indicator.dragging.trough,
+.scrollbar.overlay-indicator.hovering.trough {
+  background-color: rgba(0, 0, 0, 0.1); }
+
+.sidebar .scrollbar.overlay-indicator,
+.scrollbar.overlay-indicator {
+  -GtkRange-slider-width: 10; }
+
+.sidebar .scrollbar.overlay-indicator .trough,
+.scrollbar.overlay-indicator.trough {
+  background-color: transparent; }
+
 /* GTK NAMED COLORS
    ----------------
    use responsibly! */